package com.mosai.alignpro.entity;

import com.mosai.alignpro.util.IntentUtils;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * 请求照相参数
 * Created by Rays on 2020/10/21.
 */
public class CameraParam {

    private int imageType = ImageInfo.IMAGE_TYPE_BACK_X;

    private Set<Integer> unavailableType = new HashSet<>(Arrays.asList(ImageInfo.IMAGE_TYPE_BACK_ANALYZE, ImageInfo.IMAGE_TYPE_BACK_VR, ImageInfo.IMAGE_TYPE_HAND_LEFT, ImageInfo.IMAGE_TYPE_HAND_RIGHT));

    private boolean isNudeBack; // 是否为裸背照片

    private boolean hideTypeGroup = IntentUtils.isPatientApp(); // 隐藏大类

    private boolean hideUnavailableType = true; // 隐藏不可用类型

    public int getImageType() {
        return imageType;
    }

    public void setImageType(int imageType) {
        this.imageType = imageType;
    }

    public Set<Integer> getUnavailableType() {
        return unavailableType;
    }

    public void setUnavailableType(Set<Integer> unavailableType) {
        this.unavailableType = unavailableType;
    }

    public boolean isNudeBack() {
        return isNudeBack;
    }

    public void setNudeBack(boolean nudeBack) {
        isNudeBack = nudeBack;
    }

    public boolean isHideTypeGroup() {
        return hideTypeGroup;
    }

    public void setHideTypeGroup(boolean hideTypeGroup) {
        this.hideTypeGroup = hideTypeGroup;
    }

    public boolean isHideUnavailableType() {
        return hideUnavailableType;
    }

    public void setHideUnavailableType(boolean hideUnavailableType) {
        this.hideUnavailableType = hideUnavailableType;
    }
}
